package com.sjzl.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="tb_friend")
public class Friend extends BaseEntity {
	private String fusername;
	private User user;
	private User myselfUser;
	private String headImageSrc;
	
	public String getFusername() {
		return fusername;
	}
	public void setFusername(String fusername) {
		this.fusername = fusername;
	}
	
	@ManyToOne(fetch = FetchType.EAGER)
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	@OneToOne(fetch = FetchType.EAGER)
	public User getMyselfUser() {
		return myselfUser;
	}
	public void setMyselfUser(User myselfUser) {
		this.myselfUser = myselfUser;
	}
	public String getHeadImageSrc() {
		return headImageSrc;
	}
	public void setHeadImageSrc(String headImageSrc) {
		this.headImageSrc = headImageSrc;
	}
}
